<template>
  <div id="app" @click="tmpClk">
    <router-view/>
    <lg-preview></lg-preview>
    <!--分享组件-->
    <mob-share :sheetVisible="show" @change="changeShow">{{show}}</mob-share>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      show: false
    }
  },
  watch:{
  },
  methods: {
    tmpClk(e) {
        console.log(e.target.getAttribute('showShareTag'))
        if(e.target.getAttribute('showShareTag')) {
          this.show = true
        }
    },
    /**
     * changeShow
     * @param val
     */
    changeShow (val) {
      this.show = val
    }
  }
}
</script>

<style>
#app {
  font-family: '微软雅黑', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  background-color: #f2f2f2;
  height: 100%;
  overflow: hidden;
}
</style>
